package com.peng.spring.eg1;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author peng
 * @Date 2024-04-16 14:29
 */
@Component
public class Product {
    @Value("xiaomi_su7")
    private String title;
    @Value("100000")
    private int num;
    @Value("Are you ok?")
    private String comment;

    @Override
    public String toString() {
        return "Product{" +
                "title='" + title + '\'' +
                ", num=" + num +
                ", comment='" + comment + '\'' +
                '}';
    }
}
